-- share
-- Created by chengb Nov/5/2015
-- 成就：分享
-- 具体逻辑交给服务器处理

return {
    -- 获取成就描述
    queryDesc = function(id)
        local config = GameAchievementM.query(id);

        local ruleArg  = config["rule_arg"];
        local progress = config["progress"];
        local desc     = config["desc"];

        desc = string.gsub(desc, "{0}", progress);

        return desc;
    end,
};